package com.zsc.projectmanagementapi.common;

public enum  ResponseCode {
    //200:成功
    SUCCESS(200,"操作成功"),
    UNLOGIN(401,"您还没有登录或者您之前登录已失效"),
    EMPTY_ACCOUNT(401,"用户名不存在"),
    EMPTY_USERNAME(401,"用户名不能为空"),
    EMPTY_PASSWORD(401,"密码不能为空"),
    ERROR_PASSWORD(401,"密码错误"),
    LOGIN_FAIL(401,"登录失败"),

    UNAUTHORIZED(402,"对不起，您没有权限"),

    NOT_FOUND(404,"未查询到数据"),


    //500-599:错误
    BOUNDARY_ERROR(501,"服务出错,人数超出范围"),
    ERROR(500,"服务出错,操作失败");



    private final int code;
    private final String desc;

    ResponseCode(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public int getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }
}
